Skip to content
This repository was archived by the owner on Oct 14, 2018. It is now read-only.

Fixes for use with mysql #13

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

MercurieVV
Copy link

Mysql require table for getExportedKeys. Otherwice it throws exception
Mysql return types in upper case

Mysql require table for getExportedKeys. Otherwice it throws exception
Mysql return types in upper case
@MercurieVV
Copy link
Author

I had exception trying to use with mysql5. Exception was because mysql jdbc driver throw it if table not specified for FK fetching
Can be optimized - fetches tables twice - 1st time for FKs, 2nd - for columns

@MercurieVV
Copy link
Author

Also, it would be good to add these type mappings:
"int" -> "Int",
"bit" -> "Boolean",

@olafurpg
Copy link
Owner

Thank you for this PR! Very nice to see it work for MySql. I currently don't have much time, so it may take a while until I get to review.

At a quick glance, could you update the readme to include this change and document how to use it with MySql?

@MercurieVV
Copy link
Author

MercurieVV commented Aug 25, 2017 via email

@olafurpg
Copy link
Owner

@MercurieVV I apologize my slow response!

Its my first PR in my life

Congrats!

how to change readme

You can edit readme.md locally, add a new commit and push to your branch. This PR will update.

actually usage is the same

Perfect. The readme mentions postgres specifically in a few places, it would be nice to mention mysql there too.

To make sure that mysql continues to work across future changes, we should probably also run the tests in CI for mysql. The postgresql server is enabled here, I'm sure we can add another line for mysql:

Also, it would be good to add these type mappings:
"int" -> "Int",
"bit" -> "Boolean",

Go ahead! Please add them, it would be good to test they work as expected.

Please let me know if you get stuck, I can try to help out with the tests.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants